package com.example.demo.mapper;

import com.example.demo.model.ArticleInfo;
import com.example.demo.model.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 用户持久层
 */
@Mapper
public interface UserMapper {
    int add(@Param("username") String username,
                   @Param("password") String password);

    UserInfo query(@Param("username") String username,
                   @Param("password") String password);

}